Skip to content

ci: build + test server edition (-tags server) on PRs#631

Merged
Dumbris merged 1 commit into
mainfrom
mcp-1886-server-edition-ci
Jun 15, 2026
Merged

ci: build + test server edition (-tags server) on PRs#631
Dumbris merged 1 commit into
mainfrom
mcp-1886-server-edition-ci

Conversation

@Dumbris

@Dumbris Dumbris commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Server edition (//go:build server) was only compiled during tag-based release.yml
  • Compile errors and test failures in server-only code slipped past PR CI (as with PR feat(teams): per-user OAuth connect flow (Path B) broker connector (spec 074, MCP-1038) #602's duplicate tokenResponse)
  • Adds a server-edition job to the PR workflow running go build -tags server ./cmd/mcpproxy and go test -race -tags server ./internal/serveredition/... ./internal/config/...
  • Job has no frontend dependency — server edition doesn't embed the frontend, so it runs independently

Verification

  • go build -tags server ./cmd/mcpproxy passes on main
  • go test -race -tags server ./internal/serveredition/... ./internal/config/... passes on main

Related #MCP-1886

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ac1d0bf
Status: ✅  Deploy successful!
Preview URL: https://47f1aab1.mcpproxy-docs.pages.dev
Branch Preview URL: https://mcp-1886-server-edition-ci.mcpproxy-docs.pages.dev

View logs

Add a new 'server-edition' job to unit-tests.yml that builds and tests
the server edition (-tags server) on every push and PR. This catches
build breaks like the one in PR #602 where a duplicate type in a
server-tagged file slipped through because only release.yml (tag-only)
compiled with -tags server.

Related #MCP-1886
@Dumbris Dumbris force-pushed the mcp-1886-server-edition-ci branch from 37b2f09 to ac1d0bf Compare June 10, 2026 13:26
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

📦 Build Artifacts

Workflow Run: View Run
Branch: mcp-1886-server-edition-ci

Available Artifacts

  • archive-darwin-amd64 (28 MB)
  • archive-darwin-arm64 (25 MB)
  • archive-linux-amd64 (16 MB)
  • archive-linux-arm64 (14 MB)
  • archive-windows-amd64 (28 MB)
  • archive-windows-arm64 (24 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (21 MB)
  • installer-dmg-darwin-arm64 (19 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 27279582684 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mcpproxy-gatekeeper mcpproxy-gatekeeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Claude Code review. Additive isolated server-edition CI job (-tags server build+test); no existing gate touched.

@Dumbris Dumbris enabled auto-merge (squash) June 15, 2026 03:23
@Dumbris Dumbris merged commit b978a76 into main Jun 15, 2026
46 checks passed
Dumbris added a commit that referenced this pull request Jun 15, 2026
… pkg (MCP-2455) (#679)

PR #602 added internal/teams/broker/oauth_connector.go AFTER the Teams->Server
Edition rename (#603) moved internal/teams/ -> internal/serveredition/. The
connector landed in the stale path, in package broker, referencing
CredentialStore/UpstreamCredential as same-package symbols — but those live in
internal/serveredition/broker. Result: 'undefined: CredentialStore' under
-tags server, breaking the Server Edition CI job on main (and therefore on
every open PR after #631 added that job to PR CI).

Fix: git mv the connector + its test into internal/serveredition/broker/ (no
importers of the old path) and delete the now-empty internal/teams/ tree.
Same package, so all refs resolve. No code changes.

Verified: go build -tags server ./... (0), go build ./... (0),
go test -tags server ./internal/serveredition/... (all ok).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Dumbris added a commit that referenced this pull request Jun 15, 2026
… deleted internal/teams) (#680)

The Server Edition CI job (added #631) ran:
  go test -race -tags server ./internal/teams/... ./internal/config/...
But the Teams->Server Edition rename (#603) moved that code to
internal/serveredition/, and #679 deleted the last stale internal/teams/
file. So the job failed with 'lstat ./internal/teams/: no such file or
directory' — and before that, it was silently testing the wrong (stale,
near-empty) path, never the real serveredition packages.

Fix: test ./internal/serveredition/... instead. Verified locally:
go test -race -tags server ./internal/serveredition/... ./internal/config/...
-> all 8 packages ok.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants